package com.snow.storeapi.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @PostMapping("/post1")
    public String test1(@RequestBody String str) {
        return "return";
    }
    @PostMapping("/post2")
    public String test2(String str) {
        return "return";
    }
}
